import request from '@/utils/request'

// 修改个人信息
export const profileUserUpdate = (data?: any) =>
  request({
    url: '/user/update',
    method: 'post',
    data
  })
// 修改个人密码
export const profileUserChangePassword = (data?: any) =>
  request({
    url: '/user/change-password',
    method: 'post',
    data
  })
// 修改个人信息
export const profileUserChangeEmail = (data?: any) =>
  request({
    url: '/user/change-email',
    method: 'post',
    data
  })
